<?php 
	$vol = -1;
	if($navigation >=0 && $navigation <= 9) $vol = 0;
	if($navigation >=10 && $navigation <= 19) $vol = 1;
?>
		
<div id="navigation" class="easyui-accordion" border="false"> 
	<div title="Profile" <?= $vol == 0 ? 'selected="true"' :'' ?>>
		<ul class="pitem">
			
			<li><?= $navigation == 0 ? '<b>View Profile</b>' : '<a href="'. site_url("user") .'">View Profile</a>' ?></li>
			<li><?= $navigation == 1 ? '<b>Edit Profile</b>' : '<a href="'. site_url("user/edit_profile") .'">Edit Profile</a>' ?></li>
		</ul>
	</div>
	<div title="Associations" <?= $vol == 1 ? 'selected="true"' :'' ?>>
		<ul class="pitem">
			<li><?= $navigation == 10 ? '<b>View Associations</b>' : '<a href="'. site_url("user/associations") .'">View Associations</a>' ?></li>
			<li><?= $navigation == 11 ? '<b>Add Association</b>' : '<a href="'. site_url("user/add_association") .'">Add Association</a>' ?></li>
			<li><?= $navigation == 12 ? '<b>Add Action</b>' : '<a href="'. site_url("user/add_action") .'">Add Action</a>' ?></a></li>
		</ul>
	</div>

<?php 
	if($is_admin){
?>
	<div title="Administration" <?= $vol == 9 ? 'selected="true"' :'' ?>>
		<ul class="pitem">
			<li><?= $navigation == 90 ? '<b>View Users</b>' : '<a href="'. site_url("admin/users") .'">View Users</a>' ?></li>
			<li><?= $navigation == 91 ? '<b>View Associations</b>' : '<a href="'. site_url("admin/associations") .'">View Associations</a>' ?></li>
		</ul>
	</div>
<?php } ?>
	
</div> 